//
//  BaseUIScrollView.h
//  NovartisPPH
//
//  Created by Sidney on 13-9-26.
//  Copyright (c) 2013年 iSoftstone infomation Technology (Group) Co.,Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum SCROLL_DIRECTION
{
	UP_LEFT = -1,
	STATIC = 0,
	DOWN_RIGHT = 1
}SCROLL_DIRECTION;


@protocol ScrollViewOperationDelegate;

@interface BaseUIScrollView : UIScrollView
<UIScrollViewDelegate>

@property(nonatomic,strong)id <ScrollViewOperationDelegate> opetationDelegate;
@property(nonatomic,assign) SCROLL_DIRECTION scrollDir;

//添加下拉刷新界面
- (void)addRefreshFirstPageView;
//停止刷新.恢复原状
- (void)stopRefreshFirstPage;
//移出界面
- (void)removeRefreshFirstPageView;

//添加加载更多按钮
- (void)addReloadMoreDataBtn;
//加载完列表后,刷新位置
- (void)refreshLoadMoreBtnFrame;
//移出加载更多按钮
- (void)removeReloadMoreDataBtn;

@end


@protocol ScrollViewOperationDelegate <NSObject>
@optional

- (void)getMoreData:(BaseUIScrollView *)scrollView;
- (void)refreshFirstPage:(BaseUIScrollView *)scrollView;


@end
